<?php
	$idarea = $_GET['idarea'];
	$nombre = $_GET['nombre'];
	
	include 'open-connection.php';

	// Performing SQL query
	$query = "UPDATE area SET area.nombre='$nombre' WHERE area.idarea=$idarea";
	$result = mysql_query($query) or die('Query failed: ' . mysql_error());

	include 'close-connection.php';
	
	include 'select-area.php';
?>